import React, {Component} from 'react';
import {StyleSheet, Text, View, Image, ScrollView} from 'react-native';
import {Button, WhiteSpace, WingBlank, Flex, Toast} from '@ant-design/react-native';
import {saveParkOrder} from '~/store/parkorder';
import {connect} from 'react-redux';
import {saveSystem} from '~/store/system';

const mapGetter = (state) => {
    return {
        userinfo: state.userinfo,
        system: state.system,
        parkorder: state.parkorder,
    };
};

const mapSetter = (dispatch) => {
    return {
        onSave: (data) => {
            dispatch(saveParkOrder(data));
        },
    };
};
class Getpark extends Component {
    static navigationOptions = {
        title: '得车位',
    };
    constructor(props) {
        //调用基类的所有的初始化方法
        super(props);
        // 设置当前组件的属性
        this.state = {
            parkingid: this.props.parkingid,
        };
    }
    render() {
        return (
            <View style={{width: '100%', marginTop: 10}} justify={'center'}>
                <View style={{width: '100%'}}>
                    <Flex style={{width: '100%', paddingLeft: 20, paddingRight: 20, height: 80}}>
                        <Text style={{fontSize: 12, color: 'gray'}}>
                            备注：位于<Text style={{color: '#ec4f46'}}>{this.props.parkinfo.BuildingName}</Text>的
                            <Text style={{color: '#ec4f46'}}>{this.props.parkinfo.ParkingName}</Text>
                            车位在您与开发商签订车位购买合同后正式移交给您使用
                        </Text>
                    </Flex>
                </View>
            </View>
        );
    }
}

const styles = StyleSheet.create({});
export default connect(mapGetter, mapSetter)(Getpark);
